﻿@using GSLMS.Entity.Enum
@using GSLMS.WebAPP
@model GSLMS.Entity.TB_APP_PROINFO
@{
    Layout = null;
    var logList = Model.ProLogInfo ?? new List<GSLMS.Entity.TB_APP_LOGINFO>();
    var ProComInfo = Model.ProComInfo ?? new GSLMS.Entity.TB_APP_PROCOMINFO();

    Model.ProUnForHouInfo = Model.ProUnForHouInfo ?? new GSLMS.Entity.TB_APP_PROUNFORHOUINFO();
}
<div class="pageContent">
    <div class="pageFormContent" layouth="25">
        <p>
            <label>
                申请编号：</label>
            @Html.ValueFor(model => model.APPLYNO)
        </p>
        <p>
            <label>
                贷款类型：</label>
            @((ApplyEnum.ProLoanType)Model.LOANTYPE)
        </p>
        <p>
            <label>
                贷款产品：</label>
            @Html.ValueFor(model => model.PRODUCTNAME)
        </p>
        <p>
            <label>
                客户名称：</label>
            @Html.ValueFor(model => model.CUSTNAME)
        </p>
        @* <p>
            <label>
                证件类型：</label>
            @Html.ValueFor(model => model.DOCTYPENAME)
        </p>*@
        <p>
            <label>
                证件号码：</label>
            @Html.ValueFor(model => model.CUSTNO)
        </p>
        <p>
            <label>
                联系人手机：</label>
            @Html.ValueFor(model => model.CONTRACTTEL)
        </p>
        <p>
            <label>
                借款金额：</label>
            @Html.ValueFor(model => model.AMOUNT)
            万元
        </p>
        <p>
            <label>
                贷款期限：</label>
            @Html.ValueFor(model => model.LOANPHASE)
            @(Model.LOANPHAESTYPE == 0 ? "天" : "月")
        </p>
        <p>
            <label>
                综合费率：</label>
            @Html.ValueFor(model => model.GENERALRATE)
            %
        </p>
        <p>
            <label>
                利率：</label>
            @Html.ValueFor(model => model.RATE)
            %
        </p>
        <p>
            <label>
                管理费率：</label>
            @Html.ValueFor(model => model.MANAGEFEERATE)
            %
        </p>
        <p>
            <label>
                还款方式：</label>
            @((ApplyEnum.ProRepayment)Model.ProUnForHouInfo.REPAYMENT)
        </p>
        <div class="divider">
        </div>
        <div class="title">
            <h4>
                最终审批信息</h4>
        </div>
        <p>
            <label>
                批核金额：</label>
            @ProComInfo.AMT
            万元
        </p>
        <p>
            <label>
                批核限期：</label>
            @ProComInfo.LOANTIME
            @(ProComInfo.LOANPHASE == 0 ? "天" : "月")
        </p>
        <p>
            <label>
                批核利率：</label>
            @ProComInfo.RATE
            %
        </p>
        <p>
            <label>
                批核管理费率：</label>
            @ProComInfo.MANAGERATE
            %
        </p>
        <p>
            <label>
                批核综合利率：</label>
            @ProComInfo.GENERALRATE
            %
        </p>

        <table class="list" width="100%">
        <thead>
            <tr class="header">
                <th colspan="3" style="text-align:left;">
                    <b>日志</b>
                </th>
            </tr>
        </thead>
        @foreach (var item in logList)
        {            
            <tr>
                <td>
                    <span formatdate="yyyy-MM-dd">@item.LOGTIME</span>
                </td>
                <td>
                    @item.LOGTYPE
                </td>
                <td>
                    @item.DETAIL
                </td>
            </tr>         
        }
    </table>
    </div>
    
</div>
